<%@ Control Language="VB" AutoEventWireup="false" CodeFile="AddNewUser.ascx.vb" Inherits="Controls_AddNewUser" %>
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
    rel="stylesheet" type="text/css" />
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server" Width="375px" Height="103px" BackColor="#F7F6F3" BorderColor="#E6E2D8" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" FinishDestinationPageUrl="~/Login.aspx" LoginCreatedUser="False">
    <WizardSteps>
        <asp:WizardStep ID="UserProfile" runat="server" Title="User Profile">
                <table border="0" style="font-size: 100%; width: 375px; font-family: Verdana; height: 103px">
                    <tr>
                        <td align="right" style="width: 162px; height: 26px">
                            <asp:Label ID="Label1" runat="server" Text="First Name" Width="81px" Font-Size="X-Small" Font-Names="Verdana"></asp:Label></td>
                        <td style="height: 26px">
                            <asp:TextBox ID="txtFirstName" runat="server" Font-Names="Verdana" Font-Size="X-Small"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFirstName"
                                ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 162px; height: 26px">
                            <asp:Label ID="Label2" runat="server" Text="Last Name" Width="81px" Font-Size="X-Small" Font-Names="Verdana"></asp:Label></td>
                        <td style="height: 26px">
                            <asp:TextBox ID="txtLastName" runat="server" Font-Names="Verdana" Font-Size="X-Small"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtLastName"
                                ErrorMessage="Last Name is required." ToolTip="User Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 162px; height: 26px">
                            <asp:Label ID="lblRole" runat="server" Text="Role" Width="76px" Font-Size="X-Small" Font-Names="Verdana"></asp:Label>
                        </td>
                        <td style="height: 26px">
                            <asp:DropDownList ID="ddlRole" runat="server" Width="154px" Font-Names="Verdana" Font-Size="X-Small">
                                <asp:ListItem Value="Manager"></asp:ListItem>
                                <asp:ListItem Value="User"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 162px; height: 26px">
                        <asp:Label ID="Label3" runat="server" Text="Branch" Width="76px" Font-Size="X-Small" Font-Names="Verdana"></asp:Label>
                        </td>
                        <td style="height: 26px">
                            <asp:DropDownList ID="ddlBranch" runat="server" Width="152px" Font-Names="Verdana" Font-Size="X-Small" DataSourceID="ObjectDataSource1" DataTextField="BranchName" DataValueField="ClientBranchID">
                            </asp:DropDownList>
                            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" InsertMethod="CreateClientBranch"
                                OldValuesParameterFormatString="original_{0}" SelectMethod="getClientBranch"
                                TypeName="GTSSystem.BLL.ClientBranch" UpdateMethod="UpdateClientBranch">
                                <InsertParameters>
                                    <asp:Parameter Name="ClientId" Type="Int32" />
                                    <asp:Parameter Name="StatusId" Type="Int32" />
                                    <asp:Parameter Name="BranchName" Type="Int32" />
                                    <asp:Parameter Name="ContactName" Type="String" />
                                    <asp:Parameter Name="Phone" Type="String" />
                                    <asp:Parameter Name="Fax" Type="String" />
                                    <asp:Parameter Name="Email" Type="String" />
                                    <asp:Parameter Name="StreetAddress" Type="String" />
                                    <asp:Parameter Name="City" Type="String" />
                                    <asp:Parameter Name="ProvinceState" Type="String" />
                                    <asp:Parameter Name="Country" Type="String" />
                                    <asp:Parameter Name="PostalCode" Type="String" />
                                </InsertParameters>
                                <SelectParameters>
                                    <asp:ProfileParameter Name="ClientiD" PropertyName="ClientId" Type="Int32" />
                                </SelectParameters>
                                <UpdateParameters>
                                    <asp:Parameter Name="ClientBranchId" Type="Int32" />
                                    <asp:Parameter Name="ClientId" Type="Int32" />
                                    <asp:Parameter Name="StatusId" Type="Int32" />
                                    <asp:Parameter Name="ContactInfoId" Type="Int32" />
                                    <asp:Parameter Name="locationId" Type="Int32" />
                                    <asp:Parameter Name="BranchName" Type="Int32" />
                                    <asp:Parameter Name="ContactName" Type="String" />
                                    <asp:Parameter Name="Phone" Type="String" />
                                    <asp:Parameter Name="Fax" Type="String" />
                                    <asp:Parameter Name="Email" Type="String" />
                                    <asp:Parameter Name="StreetAddress" Type="String" />
                                    <asp:Parameter Name="City" Type="String" />
                                    <asp:Parameter Name="ProvinceState" Type="String" />
                                    <asp:Parameter Name="Country" Type="String" />
                                    <asp:Parameter Name="PostalCode" Type="String" />
                                </UpdateParameters>
                            </asp:ObjectDataSource>
                        </td>
                    </tr>
                </table>
        </asp:WizardStep>
        <asp:CreateUserWizardStep runat="server" Title="About the User" ID="AboutUser">
            <CustomNavigationTemplate>
                <table border="0" cellspacing="5" style="width: 100%; height: 100%">
                    <tr align="right">
                        <td align="right" colspan="0">
                            <asp:Button ID="StepNextButton" runat="server" BackColor="#FFFBFF" BorderColor="#CCCCCC"
                                BorderStyle="Solid" BorderWidth="1px" CommandName="MoveNext" Font-Names="Verdana"
                                ForeColor="#284775" Text="Create User" ValidationGroup="CreateUserWizard1" />
                        </td>
                    </tr>
                </table>
            </CustomNavigationTemplate>
        </asp:CreateUserWizardStep>
        <asp:CompleteWizardStep runat="server" ID="Complete">
            <ContentTemplate>
                <table border="0" style="font-size: 100%; width: 375px; font-family: Verdana; height: 103px">
                    <tr>
                        <td align="center" colspan="2" style="font-weight: bold; color: white; background-color: #5d7b9d">
                            Complete</td>
                    </tr>
                    <tr>
                        <td>
                            Your account has been successfully created.</td>
                    </tr>
                    <tr>
                        <td align="right" colspan="2">
                            <asp:Button ID="ContinueButton" runat="server" BackColor="#FFFBFF" BorderColor="#CCCCCC"
                                BorderStyle="Solid" BorderWidth="1px" CausesValidation="False" CommandName="Continue"
                                Font-Names="Verdana" ForeColor="#284775" OnClick="ContinueButton_Click1" Text="Continue"
                                ValidationGroup="CreateUserWizard1" />
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:CompleteWizardStep>
    </WizardSteps>
    <SideBarStyle BackColor="#5D7B9D" BorderWidth="0px" Font-Size="0.9em" VerticalAlign="Top" />
    <TitleTextStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <SideBarButtonStyle BorderWidth="0px" Font-Names="Verdana" ForeColor="White" />
    <NavigationButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
        BorderWidth="1px" Font-Names="Verdana" ForeColor="#284775" />
    <HeaderStyle BackColor="#5D7B9D" BorderStyle="Solid" Font-Bold="True" Font-Size="0.9em"
        ForeColor="White" HorizontalAlign="Center" />
    <CreateUserButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
        BorderWidth="1px" Font-Names="Verdana" ForeColor="#284775" />
    <ContinueButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
        BorderWidth="1px" Font-Names="Verdana" ForeColor="#284775" />
    <StepStyle BorderWidth="0px" />
    <HeaderTemplate>
        <span style="font-size: 14pt">New User Registration </span>
    </HeaderTemplate>
</asp:CreateUserWizard>
&nbsp;&nbsp;<br />
&nbsp;
